import UploadPassport from '../../../components/uploadPassport'
import { connect } from 'dva'
const Upload = ({dispatch}) => {
      const submit = (data) => {
        console.log(data)
        dispatch({
          type: 'modules/getModules',
          payload: {
            title: '交易密码重置',
            process: 'resetPassword',
            pathname: '',
            tokenId: 'test',
            businessId: '1231241204',
          }
        })
      }
      const passport = {
        processTitle: '交易密码重置',
        submit,
      }
      return (
        <UploadPassport {...passport}></UploadPassport>
      )
}
export default connect(state => state.reset)(Upload)
